//微信登录
// https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx4db4b1c6a7eadc34&redirect_uri=http%3A%2F%2Fzj83mp.natappfree.cc&scope=snsapi_userinfo&response_type=code&state=1&uin=MjI1NDQ1MDE2Mg%3D%3D&key=7a3915ec1ceb1ca0608d77fdf70aa8eae659d24d6a3d5943fe12be129d8a5fc4e193c0f2a67284731341cba5620af192&pass_ticket=KO6hSeK96NiVvo8sMMIOYJ1/7aznndn7bk6KplOH+dMDb86GR84NSNqj0SlhXcqH3QWarmuOZZBDihhaMmZdvw==
export default function weixinCode() {
    var url = location.protocol + "//" + window.location.host;
    var urlLink = '/',
    appid = 'wx4db4b1c6a7eadc34';
    window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + appid + '&' +
        'redirect_uri=' + encodeURIComponent(url) + '&' +
        'response_type=code&scope=snsapi_base&state=STATE#wechat_redirect';
}